/**
 * @Author: 赵京涛 z19472333952022@163.com
 * @Date: 2024-09-10 16:07:03
 * @LastEditors: 赵京涛 z19472333952022@163.com
 * @LastEditTime: 2024-09-10 16:07:03
 * @projectName: HeBeiHaiYangBeiDaiData
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import qs from 'qs'
import request from '@/utils/request'
import type { rulesLoginFormVO } from '@/interface'
/**
 * 用户登录
 * @param data 
 * @returns
 */
export const login = (data: rulesLoginFormVO): Promise<void> => {
  return request({
    url: '/admin/user/login.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 获取用户信息
 * @param data 
 * @returns 
 */
export const getUserInfo = (data: { userId: string }): Promise<void> => {
  return request({
    url: '/admin/user/getUserInfo.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}